package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.KcpdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface KcpdService extends BaseService<KcpdBean> {

	KcpdBean getKcpdBeanById(String id) throws Exception;
	
	void removeKcpdBeanById(String id) throws Exception;
	
	void removeKcpdBeanByIds(String ids) throws Exception;
	
	KcpdBean saveKcpdBean(KcpdBean crm) throws Exception;
	
	KcpdBean updateKcpdBean(KcpdBean crm) throws Exception;
	
	Page<KcpdBean>  findKcpdBeanByCond(KcpdBean bean,
			Page<KcpdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveKcpdBeanExt(String sql) throws Exception;

	String findKcpdBeanExtCreate(String tableName) throws Exception;

	String findKcpdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findKcpdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasKcpdBeanExtData(String tableName, String id)
			throws Exception;
}